#include <QApplication>
#include <QPushButton>

#include "Wall.h"
#include "Snake.h"
#include "quiwidget.h"
#include "gamewindow.h"


int main(int argc, char *argv[]) {

    QApplication a(argc, argv);
    a.setFont(QFont("Microsoft Yahei", 9));
    a.setWindowIcon(QIcon(":/images/main.ico"));

    QUIWidget qui;
    GameWindow *gameWindow = new GameWindow();
    qui.setMainWidget(gameWindow);

    qui.setTitle("贪吃蛇");
    qui.setFixedSize(1200, 1000);
    //设置换肤下拉菜单可见
    //qui.setVisible(QUIWidget::BtnMenu, true);

    qui.show();

    return QApplication::exec();
}
